package cn.org.book.shop.article.domain;

import java.util.Date;

import cn.org.book.shop.common.annotation.Excel;
import cn.org.book.shop.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * APP用户频道信息对象 ap_user_channel
 *
 * @author julywhj
 * @date 2020-11-17
 */
public class ApUserChannel extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    private Long channelId;

    /**
     * 文章ID
     */
    @Excel(name = "文章ID")
    private Long userId;

    /**
     * $column.columnComment
     */
    @Excel(name = "文章ID")
    private String name;

    /**
     * 频道排序
     */
    @Excel(name = "频道排序")
    private Integer ord;

    /**
     * 分类封面图片
     */
    private String cover;
    /**
     * 登录时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;
    /**
     * 文章数量
     */
    private Integer articleNumber;

    public Integer getArticleNumber() {
        return articleNumber;
    }

    public void setArticleNumber(Integer articleNumber) {
        this.articleNumber = articleNumber;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setChannelId(Long channelId) {
        this.channelId = channelId;
    }

    public Long getChannelId() {
        return channelId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setOrd(Integer ord) {
        this.ord = ord;
    }

    public Integer getOrd() {
        return ord;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("channelId", getChannelId())
                .append("userId", getUserId())
                .append("name", getName())
                .append("ord", getOrd())
                .append("createdTime", getCreatedTime())
                .toString();
    }
}
